# -*- coding: utf-8 -*-

"""
DateTime   : 2020/11/25 16:07
Author     : ZhangYafei
Description: 
"""
""" 1. 猜数字 """
num1 = 66
while True:
    num2 = int(input('请输入数字：'))
    if num1 == num2:
        print('恭喜你，输入正确')
        break
    elif num2 < num1:
        print('你输入的数字小了')
    else:
        print('你输入的数字大了')
""" 1-100 """
i = 1
while i <= 100:
    print(i)
    i += 1

""" 1-10 除7 """
i = 1
while i <= 10:
    if i == 7:
        i += 1
        continue
    print(i)
    i += 1
""" 1-100求和 """
sum = 0
i = 1
while i <= 100:
    print(i)
    sum += i
    i += 1

print(sum)

""" 10-1 """
i = 10
while i >= 1:
    print(i)
    i -= 1
""" 1-100奇数 """
num = 1
while num <= 100:
    if num % 2 == 1:
        print(num, '为奇数')
    else:
        print(num, '为偶数')
    num += 1
